﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using FluentScheduler;
using Glorysoft.Auto.Xfw;
using Glorysoft.Auto.Xfw.Contract;
using Glorysoft.Auto.Xfw.Entities;
using Glorysoft.EAP.Contracts.MESClient;
using Glorysoft.EAP.Contracts.MESClient.Models;
using Glorysoft.EAP.Contracts.SMECMESClient.Entities;
using Glorysoft.EAP.Core;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Glorysoft.EAP.EAPwell
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                var xfw = XfwContext.Current;
                IConfiguration config = new ConfigurationBuilder()
                    .SetBasePath(Directory.GetCurrentDirectory())
                    .AddJsonFile("appsettings.json", true, true)
                    .Build();
                  EAPwellServer.Current.InitLoad(config);
            }
            catch (Exception e)
            {
                Console.WriteLine($"程序错误:{e.StackTrace}");
            }
        }

    }
}
